package com.powergisol.gis.service.impl;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import com.powergisol.gis.service.FallBackService;
import com.powergisol.gis.util.Result;
import com.powergisol.gis.vo.TabServiceVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Date: 2019/8/7  14:53
 * Description:
 */
@Component
public class FallBackServiceImpl implements FallBackService {
    private static Logger logger = LoggerFactory.getLogger(FallBackServiceImpl.class);
    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public List<Map<String,Object>> getSynService() {
        return null;
    }

    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public Result remoteServiceNameDouble(String name) {
        return null;
    }

    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public Result remoteReleaseTabService(Integer serviceType, String changeType, String assinSuffixName, Integer currentUserId, String currentUserName, String name, Integer type, String keyword, String description, String fileUrl, String startLevel, String endLevel, String uuid) {
        return null;
    }


}
